package com.bwda.dsrs.filecenter.domain.form.strategycontrol;

import com.bwda.dsrs.base.util.DateUtil;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Size;

/**
 * 管控策略新增Form实体类
 *
 * @author zhangyinmei
 * @date 2019年4月28日
 */
@Data
@ApiModel(description = "管控策略")
public class StrategyControlCreateForm {

	@ApiModelProperty(value = "名称")
	private String name;

	@ApiModelProperty(value = "等级12345")
	private Integer sensitiveLevel;

	@ApiModelProperty(value = "逗号隔开")
	private String businessIds;

	@ApiModelProperty(value = "备注")
	@Size(min = 0, max = 512 ,message = "最长不超过512，请重新输入！")
	private String remark;

	@ApiModelProperty(value = "0内置1自定义")
	private Integer riskModel;

	@ApiModelProperty(value = "创建人编号")
	private String createUserCode;

	@ApiModelProperty(value = "创建时间,格式为:" + DateUtil.FORMAT)
	@DateTimeFormat(pattern = DateUtil.FORMAT)
	private Date createTime;

	@ApiModelProperty(value = "更新人编号")
	private String updateUserCode;

	@ApiModelProperty(value = "更新时间,格式为:" + DateUtil.FORMAT)
	@DateTimeFormat(pattern = DateUtil.FORMAT)
	private Date updateTime;

	@ApiModelProperty(value = "0未删除 1已删除")
	private Integer delFlag;

	@ApiModelProperty(value = "多个，逗号分隔")
	private String riskValue;

	@ApiModelProperty(value = "状态")
	private Integer status;

}